<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateShopOrderLogTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        // 订单日志表
        Schema::create('shop_order_log', function (Blueprint $table) {
            $table->increments('id',11)->comment('自增id');
            $table->integer('order_id')->comment('订单id');
            $table->string('user',20)->comment('操作人：顾客或者admin或seller');
            $table->string('action',20)->comment('动作');
            $table->dateTime('addtime')->comment('添加时间');
            $table->string('result',10)->comment('操作结果');
            $table->string('note',100)->comment('备注');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('shop_order_log');
    }
}
